
package tichu_project252.CardClasses;

/**
 * Implements the special cards of the game. 
 * Special are the cards that are not countable and they have a special ability in the game.
 * 
 * <p> <b> Invariants: </b>  strRepr != null </p>
 *
 * @author Alexandra Barka, ΑΜ: 2867, login : barka.
 * @author Euaggelia Petauraki AM: 2875 login: petavraki.
 * @version %I%, %G%
 */
public class specialCard extends Card{
      /**
     *
     * Constructs a new special card.
     *
     * <p><b>Constructor: </b> specialCard (int intRepr, String strRepr) </p>
     *
     * <p><b>Precondition: </b>  the number and name of the card are
     * valid. </p> <p><b>Postcondition: </b> Constructs a valid special card </p>
     *
     * @param intRepr The int representation of the card
     * @param strRepr The string representation of the card
     * @throws Exception Exception is thrown if the card names are invalid.
     */
    specialCard (int intRepr, String strRepr) throws Exception{
        super (intRepr, strRepr);
    }
    
     /**
     *
     * Constructs a new special card.
     *
     * <p><b>Constructor: </b> specialCard (String strRepr) </p>
     *
     * <p><b>Precondition: </b>  the name of the card is
     * valid. </p> <p><b>Postcondition: </b> Constructs a valid special card </p>
     *
     * @param strRepr The string representation of the card
     * @throws Exception Exception is thrown if the card names are invalid.
     */
    
    specialCard(String strRepr) throws Exception{
        super(strRepr);
    }
 
     /**
     * Returns the suit of the card.
     *
     * The special cards don't have suit, so it returns null.
     * 
     * <p> <b> Accessor: </b> getSuit() </p>
     *
     * <p><b> Precondition: </b> </p>  
     * <p> <b> Postcondition:</b> </p>
     *
     * @return The suit of the card
     */
    
    @Override
    public String getSuit(){ return null;} // does not have suit
    
}

